﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddNews.aspx.cs" Inherits="Maticsoft.Web.sysMan.AddNews"  ValidateRequest="false" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
      <script src="../ckeditor/ckeditor.js" type="text/javascript"></script>
        <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            font-size: 13px;
            font-weight: bold;
            color: #0000FF;
        }
        .topM
        {
        	margin-top:18px;
        	}
        </style>
</head>
<body style=" font-size:12px;">
    <form id="form1" runat="server">
    <div>
    <fieldset style="margin: 10px;">
            <legend class="fole_end">
                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/fieldset.gif" />
                <span class="style2">新闻通知公告管理</span></legend>
                <div style="text-align:center">
                    <table cellpadding="0" cellspacing="0" class="style1">
                        <tr>
                            <td style=" height:18px;text-align:right; width:150px;">
                                <b>文章类型：</b>
                            </td>
                            <td style=" text-align:left;">
                                <asp:DropDownList ID="ddl_type" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="ddl_type_SelectedIndexChanged">
                                    <asp:ListItem>资料库</asp:ListItem>
                                    <asp:ListItem>通知公告</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;
                                <asp:Label ID="lblnewsId" runat="server" Visible="False"></asp:Label>
                                <asp:TextBox ID="txtnewsCount" runat="server" Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style=" height:18px;text-align:right; width:150px;">
                                <strong>资料名称：</strong></td>
                            <td style=" text-align:left;">
                                <asp:TextBox ID="txt_zlk" runat="server"></asp:TextBox>
&nbsp;&nbsp;
                                <asp:Button ID="btn_addZL" runat="server" onclick="btn_addZL_Click" Text="添加资料" 
                                    Width="96px" />
                            </td>
                        </tr>
                        <tr>
                            <td style=" height:18px;text-align:right; width:150px;">
                                <strong>所属资料：</strong></td>
                            <td style=" text-align:left;">
                                <asp:DropDownList ID="ddl_parent" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style=" height:18px;text-align:right; width:150px;">
                                <b>发布时间：</b></td>
                            <td style=" text-align:left;">
                                <asp:TextBox ID="txtnewsPubTime" runat="server"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style=" height:18px;text-align:right; width:150px;">
                                <b>发布者</b><strong>：</strong></td>
                            <td style=" text-align:left;">
                                <asp:TextBox ID="txtnewsPublisher" runat="server" Width="505px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style=" height:18px;text-align:right; width:150px;">
                                <b>文章标题：</b></td>
                            <td style=" text-align:left;">
                                <asp:TextBox ID="txtnewsTitle" runat="server" Width="505px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style=" height:18px;text-align:right; width:150px;">
                                <b>文章内容：</b></td>
                            <td style=" text-align:left;">
                                <asp:TextBox ID="txtnewsContent" runat="server" Height="503px" 
                                    TextMode="MultiLine" Width="98%"></asp:TextBox>
                                 <script type="text/javascript">
                                     //关键！
                                     CKEDITOR.replace('<%= txtnewsContent.ClientID %>', { skin: 'kama' }); 
                                        </script>
                            </td>
                        </tr>
                       
                        <tr>
                            <td style=" height:18px;text-align:right; width:150px;">
                                &nbsp;</td>
                            <td style=" text-align:left;">
                                <asp:Button ID="Button1" runat="server" Text="提 交" Width="105px" 
                                    onclick="Button1_Click" />
                            </td>
                        </tr>
                       
                    </table>
&nbsp;</div></fieldset>
    
    </div>
    </form>
</body>
</html>
